<%--
  @desc: 应用系统角色新增
  @author: chenw
  @create: 2014-4-29 下午 15:32
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
    .pageFormContent .textInput {
        width: 220px;
    }
    .pageFormContent .fix_p { width: 310px; }
    .gray {
        color: gray;
    }
</style>
<div class="pageContent">
    <form id="pagerForm" method="post" action="<c:url value='/member/edit'/>" class="pageForm required-validate"
          onsubmit="return validateCallback(this,callbackForSubmit)" rel="dlg_sys_user_edit">
        <div class="pageFormContent">
            <p>
                <label for="txt_user_login_id" class="required">用户名</label>
                <input id="txt_user_login_id" readonly type="text" name="loginId" class="required" maxlength="50" value="${member.loginId}"/>
            </p>
            <p>
                <label for="txt_user_real_name">真实姓名</label>
                <input id="txt_user_real_name" type="text" name="realName" class="required" maxlength="300" value="${member.realName}"/>
            </p>
            <p>
                <label for="txt_user_idCard">身份证号</label>
                <input id="txt_user_idCard" type="text" name="idCard" class="required" maxlength="300"
                       value="${member.idCard}"/>
            </p>
            <p>
                <label for="txt_user_address">联系地址</label>
                <input id="txt_user_address" type="text" name="address" maxlength="300" value="${member.address}"/>
            </p>

          

            <p>
                <label for="txt_user_tel">电话号码</label>
                <input id="txt_user_tel" type="text" name="tel" maxlength="300" value="${member.tel}"/>
            </p>

        <p>
                <label for="txt_reg_time">注册时间</label>
                <input id="txt_reg_time" type="text" name="regTime" maxlength="300" value="<fmt:formatDate value="${member.regTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
            </p>

            <p>
                <label for="txt_user_lpn">车牌号</label>
                <input id="txt_user_lpn" type="text" name="lpn" maxlength="300" value="${member.lpn}"/>
            </p>

            <p>
                <label for="txt_user_vin">车架号</label>
                <input id="txt_user_vin" type="text" name="vin" maxlength="300" value="${member.vin}"/>
            </p>

            <p>
                <label for="txt_user_drivingLic">驾驶证号</label>
                <input id="txt_user_drivingLic" type="text" name="drivingLic" maxlength="300"
                       value="${member.drivingLic}"/>
            </p>
            <!--
            <p class="fix_p">
                <label for="txt_user_status">状态</label>
                <select id="txt_user_status" name="status" class="combox">
                        <option value="0" <c:if test="${member.status=='0'}">selected</c:if>>锁定</option>
                        <option value="1" <c:if test="${member.status=='1'}">selected</c:if>>正常</option>
                        <option value="2" <c:if test="${member.status=='2'}">selected</c:if>>禁用</option>
                </select>
                <script>
                    //$("#txt_user_status").value("${member.status}");
                </script>
            </p>
            <p>
                <label for="txt_role_sort">排序</label>
                <input id="txt_role_sort" type="text" name="sort" class="required numberbox" maxlength="4" value="${member.sort}"/>
            </p>
-->
            <input type="hidden" name="id" value="${member.id}"/>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">更新</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
<script type="text/javascript">
    function callbackForSubmit(resp, st, xhr) {
        if (resp && resp.succ) {
            alertMsg.info("用户信息更新成功！");
            $.pdialog.closeCurrent();
            navTab.reloadFlag('page_mobile_client_list')
        } else {
            alertMsg.info(resp.msg + "!");
        }
    }
</script>